from django.forms import forms, ModelForm
from .models import Students

class Student1Form(forms.Form):
    name=forms.CharField(max_length=20)
    age=forms.IntegerField(max_value=20)

class StudentForm(ModelForm):
    class Meta:
        model=Students
        fields=['name','age']
